package com.gopay.common.cps.dao.cbrmb.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.cbrmb.CbRmbBankRestoreDtlDao;
import com.gopay.common.domain.cbrmb.CbRmbBankRestoreDtl;

/**
 * 
 * @ClassName: CbRmbBankRestoreDtlDaoImpl 
 * @Description: 
 * @author gd.cui 
 * @date 2016年7月13日 上午10:29:52 ww.gopay.com.cn Inc.All rights reserved.
 */
@Repository(value = "cbRmbBankRestoreDtlDao")
public class CbRmbBankRestoreDtlDaoImpl extends BaseDAOImpl<CbRmbBankRestoreDtl, Serializable>
        implements CbRmbBankRestoreDtlDao {

    /**
     * 更具国付宝Id 获取该笔订单所有付款人信息
     */
    @Override
    public List<CbRmbBankRestoreDtl> findByGopayOrderId(String gopayOrderId) {
        String hql = "from CbRmbBankRestoreDtl where gopayOrderId=:gopayOrderId";
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("gopayOrderId", gopayOrderId);
        return findByHql(hql, param);
    }

}
